import './App.css';
import React from 'react';
import Toolbar from "./Toolbar";
import { connect } from 'react-redux';
import BabyEditForm from "./Components/BabyEditForm";


class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            childData: [],
        }
    }
    componentDidMount() {

    }
    componentWillUnmount = () => {
        this.setState = () => {
            return;
        };
    }
    render() {
        return (
            <div>
                <BabyEditForm state={this.props} />
                <Toolbar history={this.props.history} />
            </div>
        )
    };
}
export default connect(
    state => ({ currentUser: state.setCurrentUser, currentChild: state.setCurrentChild })
)(App)
